package com.yijia.cloudclient.controller;

import com.yijia.cloudclient.service.CloudService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * TODO
 *
 * @author Hlong
 * @version V1.0
 * @data 2020-8-26
 */
@RestController
@RequestMapping("/test")
public class CloudApiController {
    @Autowired
    CloudService cloudService;

    @GetMapping(value = "/add")
    public String service(@RequestParam String userId){
        System.out.println("客户端发起请求");
        return cloudService.getManager(userId);
    }
}
